/* 
 * 通用组件样式
 * 注意：字体定义和全局重置在 base.css
 * 首页特定样式在 index.css
 */

/* 容器样式 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* 表格样式 */
.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e6e6e6;
}

.table th {
  font-weight: bold;
  background-color: #fafafa;
}

/* 分页样式 */
.pagination,
.pagination-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.pagination a,
.pagination span {
  margin: 0 5px;
  padding: 0 15px;
  height: 30px;
  line-height: 30px;
  border: 1px solid #e2e2e2;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
}

.pagination .pagination-curr {
  background-color: #A6CE39;
  color: #fff;
  border-color: #A6CE39;
}

.pagination .pagination-curr .pagination-em {
  background-color: #A6CE39;
  border-radius: 2px;
}

.pagination .pagination-curr em {
  color: #fff;
}

.pagination a:hover {
  color: #A6CE39;
  border-color: #A6CE39;
}

.pagination .disabled,
.pagination .disabled:hover {
  color: #d2d2d2;
  cursor: not-allowed;
  border-color: #e2e2e2;
}

/* 行样式 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.row > * {
  padding: 0 15px;
}

/* 栅格系统 */
.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 15px;
}

.row-space-30 {
  margin: 0 -15px;
}

.row-space-30 > * {
  padding: 0 15px;
  margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
  .col-md-6,
  .col-md-4,
  .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Banner样式 */
.news-banner {
  height: 800px;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

/* 轮播图容器 */
.news-banner .banner-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 轮播图包装器 */
.news-banner .banner-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 轮播图项 */
.news-banner .banner-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.news-banner .banner-item.active {
  opacity: 1;
  z-index: 1;
}

.news-banner .banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-banner .banner-item a {
  display: block;
  width: 100%;
  height: 100%;
}

/* 单张图片样式 */
.news-banner .banner-single {
  width: 100%;
  height: 100%;
}

.news-banner .banner-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-banner .banner-single a {
  display: block;
  width: 100%;
  height: 100%;
}

/* 指示器 */
.news-banner .banner-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.news-banner .banner-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.news-banner .banner-indicator.active {
  background: #fff;
  width: 24px;
  border-radius: 5px;
}

.news-banner .banner-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* 控制按钮 */
.news-banner .banner-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.news-banner .banner-prev,
.news-banner .banner-next {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  border-radius: 50%;
  pointer-events: all;
  transition: all 0.3s;
  user-select: none;
}

.news-banner .banner-prev:hover,
.news-banner .banner-next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.news-banner .banner-prev {
  left: 20px;
}

.news-banner .banner-next {
  right: 20px;
}

/* 加载和错误状态 */
.news-banner .banner-loading,
.news-banner .banner-empty,
.news-banner .banner-error {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}


/* 二级导航样式 */
.sub-nav {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.sub-nav.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sub-nav .layui-tab {
  margin: 0;
  display: inline-block;
}

.sub-nav .layui-tab-title {
  height: 50px;
  border: none;
}

.sub-nav .layui-tab-title li {
  line-height: 50px;
  padding: 0 50px;
  position: relative;
  font-family: Microsoft YaHei, Microsoft YaHei;
  font-weight: 400;
  font-size: 16px;
}

.sub-nav .layui-tab-title .layui-this {
  color: #fff;
  background-color: #A6CE39;
}

.sub-nav .layui-tab-title .layui-this:after {
  display: none;
}

/* 兼容自定义类名 */
.sub-nav .tab {
  margin: 0;
  display: inline-block;
}

.sub-nav .tab-title {
  height: 50px;
  border: none;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.sub-nav .tab-title li {
  line-height: 50px;
  padding: 0 50px;
  position: relative;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 16px;
  transition: font-weight 0.3s ease;
  cursor: pointer;
}

.sub-nav .tab-title li:hover {
  font-weight: bold;
}

.sub-nav .tab-title li.active {
  color: #fff;
  background-color: #A6CE39;
}

.sub-nav .tab-title li.active:after {
  display: none;
}

.section {
  padding: 40px 0;
  min-height: 500px;
  width: 100%;
  background-color: #fff;
  position: relative;
}

.section:nth-child(even) {
  background-color: #fafafa;
}

.section:first-child {
  padding-top: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title-wrap {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-title {
  display: inline-block;
  margin: 0;
  font-weight: normal;
  font-family: Microsoft YaHei, 微软雅黑;
  font-size: 36px;
  color: #333333;
}

.section-subtitle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-subtitle {
  margin: 0 15px;
  white-space: nowrap;
  font-family: Microsoft YaHei, 微软雅黑;
  font-weight: normal;
  font-size: 24px;
  color: #999999;
}

.decor-img {
  height: auto;
  width: 100%;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .news-banner {
    height: 200px;
  }

  .sub-nav .layui-tab-title li,
  .sub-nav .tab-title li {
    padding: 0 15px;
  }

  .nav-menu .nav-item {
    display: none;
  }

  .nav-menu .nav-item.user-icons {
    display: block;
  }

  .section-header {
    margin-bottom: 20px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .section-subtitle {
    font-size: 12px;
  }

  .section-subtitle-wrap:before,
  .section-subtitle-wrap:after {
    width: 35px;
  }

  .decor-img {
    width: 100%;
    height: auto;
  }
}

/* 公司新闻样式 */
.news-main {
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.08);
}

.news-main:hover {
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.15);
}

.news-img {
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 4px;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-img:hover img {
  transform: scale(1.05);
}


.news-content {
  padding: 20px;
}

.news-content h3 {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 20px;
  color: #000000;
  margin: 10px 0 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-content p {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 16px;
  color: #666666;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-more {
  color: white;
  font-size: 14px;
  background-color: #A6CE39;
  padding: 10px 20px;
  border-radius: 4px;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.news-more:hover {
  background-color: #95b933;
}

.news-list .news-item {
  display: flex;
  align-items: flex-start;
  padding-bottom: 5px;
}

.news-date {
  min-width: 116px;
  height: 116px;
  background: url('res/3.png') no-repeat;
  background-size: contain;
  text-align: center;
  padding-top: 15px;
  margin-right: 15px;
}

.news-date strong {
  display: block;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 42px;
  color: #FFFFFF;
}

.news-date span {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 16px;
  color: #FFFFFF;
}

.news-info {
  flex: 1;
}

.news-info h4 {
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 20px;
  color: #000000;
  text-overflow: ellipsis;
}

.news-info p {
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 16px;
  color: #666666;
  text-overflow: ellipsis;
}

.news-more-link {
  text-align: right;
  margin-top: 15px;
}

.news-more-link a {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 16px;
  color: #333333;
  text-decoration: none;
  transition: color 0.3s;
}

.news-more-link a:hover {
  color: #A6CE39;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 15px;
}

.news-time {
  color: #999;
  font-size: 14px;
  line-height: 1;
}

/* 优惠活动样式：列表列可收缩，避免内容撑破导致换行 */
#promo-list > .layui-col-md3 {
  min-width: 0;
}

.promo-item {
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.12);
  min-width: 0; /* 允许在 grid 中收缩，使标题省略号生效 */
}

.promo-item:hover {
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.promo-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.promo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.promo-item:hover .promo-img img {
  transform: scale(1.05);
}

.promo-info {
  padding: 20px 24px;
  min-width: 0; /* 配合标题单行省略 */
  text-align: center;
}

.promo-info h3 {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 18px;
  color: #000000;
  margin: 0 0 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.promo-info h3 a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  text-decoration: none;
}
.promo-info h3 a:hover {
  color: #A6CE39;
}

.promo-date {
  margin-bottom: 10px;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 14px;
  color: #999999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-time {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 14px;
  color: #666666;
  min-width: 0;
}
.promo-time > span {
  white-space: nowrap;
  flex-shrink: 0;
}
.promo-time .time-boxes {
  flex-shrink: 0;
}

.time-boxes {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap; /* 数字与「天/时/分/秒」不换行 */
}

.time-boxes span {
  display: inline-block;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  color: #333;
}

@media screen and (max-width: 768px) {
  .promo-img {
    height: 150px;
  }
  
  .promo-info {
    padding: 15px;
  }
  
  .promo-info h3 {
    font-size: 16px;
  }
  
  .time-boxes span {
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
  }
}

.promo-status {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 14px;
}

.promo-status.ended {
  color: #FF0000;
}

/* 行业新闻样式 */
.industry-list {
  margin-bottom: 20px;
}

.industry-item {
  display: flex;
  align-items: stretch;
  background: #FFFFFF;
  padding: 15px 20px 15px 20px;
  margin-bottom: 15px;
  border-radius: 4px;
  transition: all 0.3s;
}

.industry-item:last-child {
  margin-bottom: 0;
}

.industry-item:hover {
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.12);
  transform: translateX(5px);
}

/* 日期块：内容上下居中 */
.industry-date {
  min-width: 116px;
  width: 116px;
  height: 116px;
  background: url('res/3.png') no-repeat center center;
  background-size: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.industry-date strong {
  display: block;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 36px;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 4px;
}

.industry-date span {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 14px;
  color: #FFFFFF;
}

.industry-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.industry-info h3 {
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 20px;
  color: #000000;
}

.industry-info p {
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 16px;
  color: #666666;
}

@media screen and (max-width: 768px) {
  .industry-item {
    padding: 12px 15px;
    margin-bottom: 12px;
  }

  .industry-date {
    min-width: 80px;
    width: 80px;
    height: 80px;
    margin-right: 15px;
  }

  .industry-date strong {
    font-size: 24px;
  }

  .industry-date span {
    font-size: 12px;
  }

  .industry-info h3 {
    font-size: 16px;
  }

  .industry-info p {
    font-size: 12px;
  }
}

/* 技术资料样式 */
.tech-item {
  background: #F5F5F5;
  border-radius: 4px;
  padding: 15px;
  transition: all 0.3s;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.12);
}

.tech-tree {
  width: 200px;
  flex-shrink: 0;
}

.tech-tree img {
  width: 100%;
  height: auto;
}

.tech-info {
  flex: 1;
}

.tech-info h3 {
  margin-bottom: 10px;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: bold;
  font-size: 18px;
  color: #333333;
}

.tech-date {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 14px;
  color: #999999;
}

@media screen and (max-width: 768px) {
  .tech-item {
    padding: 15px;
    margin-bottom: 15px;
  }

  .tech-tree {
    width: 150px;
  }

  .tech-info h3 {
    font-size: 16px;
  }
}

/* 合作伙伴样式 */
.partner-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.partner-pagination button {
  padding: 8px 20px;
  background-color: #A6CE39;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.partner-pagination button:hover:not(:disabled) {
  background-color: #95b933;
}

.partner-pagination button:disabled {
  background-color: #d2d2d2;
  cursor: not-allowed;
  opacity: 0.6;
}

.partner-pagination span {
  font-size: 14px;
  color: #333;
}

.partner-container {
  position: relative;
  padding: 20px 0 40px;
  height: 320px;
  overflow: hidden;
}

.partner-pages {
  position: relative;
  height: 260px;
  width: 100%;
}

.partner-grid {
  display: none;
  grid-template-columns: repeat(7, 118px);
  grid-template-rows: repeat(2, 118px);
  gap: 15px;
  justify-content: center;
  align-content: center;
  height: 100%;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  animation: partnerFadeIn 0.4s ease;
}

.partner-grid.active {
  display: grid;
}

@keyframes partnerFadeIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.partner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.partner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d2d2d2;
  cursor: pointer;
  transition: background 0.3s;
}

.partner-dot.active {
  background: #A6CE39;
}

.partner-logo {
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  transition: all 0.3s;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 768px) {
  .partner-container {
    height: 280px;
  }

  .partner-pages {
    height: 220px;
  }

  .partner-grid {
    grid-template-columns: repeat(4, 60px);
    grid-template-rows: repeat(4, 60px);
    gap: 8px;
  }
  
  .partner-logo {
    width: 60px;
    height: 60px;
  }

  .nav-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .partner-grid {
    grid-template-columns: repeat(4, 45px);
    grid-template-rows: repeat(4, 45px);
    gap: 5px;
  }
  
  .partner-logo {
    width: 45px;
    height: 45px;
  }
}

/* 科研工具样式 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.tool-item {
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.08);
}

.tool-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.15);
}

.tool-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.tool-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.tool-item:hover .tool-img img {
  transform: scale(1.05);
}

.tool-info {
  padding: 20px;
}

.tool-info h3 {
  font-family: Microsoft YaHei, 微软雅黑;
  font-weight: bold;
  font-size: 18px;
  color: #333333;
  margin-bottom: 10px;
}

.tool-info p {
  font-family: Microsoft YaHei, 微软雅黑;
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 15px;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tool-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #A6CE39;
  border-radius: 4px;
  color: #FFFFFF;
  font-size: 14px;
  transition: all 0.3s;
  border-radius: 20px;
}

.tool-btn:hover {
  background: #95b933;
  color: #FFFFFF;
}

@media screen and (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .tool-img {
    height: 120px;
  }

  .tool-info {
    padding: 15px;
  }

  .tool-info h3 {
    font-size: 16px;
  }

  .tool-info p {
    font-size: 12px;
    height: 38px;
  }

  .tool-btn {
    padding: 6px 15px;
    font-size: 12px;
  }
}

/* ===================== 广告位通用样式 ===================== */

.ad-banner-section {
  width: 100%;
  overflow: hidden;
}

.ad-banner-section .ad-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ad-banner-section .ad-banner-item {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.ad-banner-section .ad-banner-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ad-banner-section .ad-banner-item img {
  width: 100%;
  height: auto;
  display: block;
}

.ad-banner-section .ad-banner-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.ad-banner-section .ad-banner-placeholder {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
}

.ad-banner-carousel {
  position: relative;
}

.ad-banner-carousel .ad-banner-item {
  display: none;
}

.ad-banner-carousel .ad-banner-item.active {
  display: block;
}

.ad-banner-carousel .ad-banner-dots {
  text-align: center;
  margin-top: 12px;
}

.ad-banner-carousel .ad-banner-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.ad-banner-carousel .ad-banner-dots span.active {
  background: #55a7eb;
}

/* 首页中间横幅广告 */
.section-ad-mid {
  padding: 30px 0;
}

/* 新闻列表页顶部广告 */
.newslist-ad-top {
  margin-bottom: 15px;
}

.newslist-ad-top .ad-banner-placeholder {
  height: 90px;
  font-size: 18px;
}

/* 文章详情页底部广告 */
.article-ad-bottom {
  margin: 30px 0 10px;
  padding-top: 20px;
  border-top: 1px dashed #e6e6e6;
}

.article-ad-bottom .ad-label {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 8px;
}

.article-ad-bottom .ad-banner-placeholder {
  height: 100px;
  font-size: 16px;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* 页脚上方通栏广告 */
.footer-ad-banner {
  padding: 30px 0;
}

.footer-ad-banner .ad-banner-placeholder {
  height: 100px;
  font-size: 18px;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

@media screen and (max-width: 768px) {
  .ad-banner-section .ad-banner-text {
    font-size: 13px;
    padding: 10px 16px;
  }

  .ad-banner-section .ad-banner-placeholder {
    height: 80px;
    font-size: 14px;
  }

  .section-ad-mid {
    padding: 15px 0;
  }

  .footer-ad-banner {
    padding: 20px 0;
  }
}